import axios from "@/axios"


//获取会员等级
export function getLevelList(page){
    return axios.get(`/admin/user_level/${page}`)
}

//新增
export function createLevel(data){
    return axios.post("/admin/user_level",data)
}


//修改
export function updateLevel(id,data){
    return axios.post("/admin/user_level/"+id,data)
}

//修改状态
export function updateUserLevel(id,status){
    return axios.post(`/admin/user_level/${id}/update_status`,{status})
}

//删除
export function deleteLevel(id){
    return axios.post(`/admin/user_level/${id}/delete`)
}

